home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / tex / dvivga9.zip / GBLPROCS.H < prev    next >
C/C++ Source or Header  |  1988-05-30  |  11KB  |  495 lines

  1. /* -*-C-*- gblprocs.h */
  2. /*-->gblprocs*/
  3. /**********************************************************************/
  4. /****************************** gblprocs ******************************/
  5. /**********************************************************************/
  6.  
  7. /**********************************************************************/
  8. /*************************  Global Procedures  ************************/
  9. /**********************************************************************/
  10.  
  11. #if    ANSI_PROTOTYPES
  12. void    abortrun(int);
  13. float    actfact(UNSIGN32);
  14. void    alldone(void);
  15.  
  16. #if    ANSI_LIBRARY
  17. double    atof(const char *);
  18. int    atoi(const char *);
  19. #else
  20. double    atof(char *);
  21. int    atoi(char *);
  22. #endif /* ANSI_LIBRARY */
  23.  
  24. #if    (BBNBITGRAPH | CANON_A2 | HPJETPLUS | IMPRESS | POSTSCRIPT)
  25. void    bopact();
  26. #endif /* (BBNBITGRAPH | CANON_A2 | HPJETPLUS | IMPRESS | POSTSCRIPT) */
  27.  
  28. int    chargf(BYTE,void(*)());
  29. int    charpk(BYTE,void(*)());
  30. int    charpxl(BYTE,void(*)());
  31.  
  32. #if    (BBNBITGRAPH | HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2)
  33. #else
  34. void    clrbmap(void);
  35. #endif /* (BBNBITGRAPH | HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2) */
  36.  
  37. void    clrrow(void);
  38.  
  39. #if    POSTSCRIPT
  40. void    cppsfile(void);
  41. #endif /* POSTSCRIPT */
  42.  
  43. #if    ANSI_LIBRARY
  44. char*   ctime(const time_t *);
  45. #else
  46. char*    ctime(long *);
  47. #endif /* ANSI_LIBRARY */
  48.  
  49. char*    cuserid(char *);
  50. void    dbgopen(FILE*, char*, char*);
  51. void    devinit(int, char *[]);
  52. void    devterm(void);
  53.  
  54. #if    (BBNBITGRAPH | HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2)
  55. #else
  56. void    dispchar(BYTE);
  57. #endif /* (BBNBITGRAPH | HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2) */
  58.  
  59. void    dvifile(int, char *[], char *);
  60. void    dviinit(char *);
  61. void    dviterm(void);
  62.  
  63. #if    POSTSCRIPT
  64. void    emitchar(BYTE);
  65. #endif /* POSTSCRIPT */
  66.  
  67. #if    (BBNBITGRAPH | CANON_A2 | HPJETPLUS | POSTSCRIPT)
  68. void    eopact();
  69. #endif /* (BBNBITGRAPH | CANON_A2 | HPJETPLUS | POSTSCRIPT) */
  70.  
  71. void    EXIT(int);
  72. void    fatal(char *);
  73. void    fillrect(COORDINATE, COORDINATE, COORDINATE, COORDINATE);
  74. void    findpost(void);
  75. COORDINATE    fixpos(COORDINATE, INT32, float);
  76. void    fontfile(char *[MAXFORMATS],char *,char *,int);
  77. BOOLEAN    fontsub(char *,int *,char *,int);
  78.  
  79. #if    ANSI_LIBRARY
  80. void    free(void *);
  81. #else
  82. void    free(char *);
  83. #endif /* ANSI_LIBRARY */
  84.  
  85. int    FSEEK(FILE *,long,int);
  86. void    getbmap(void);
  87. void    getbytes(FILE *, char *, BYTE);
  88.  
  89. #if    ANSI_LIBRARY
  90. char*    GETENV(const char *);
  91. #else
  92. char*    GETENV(char *);
  93. #endif /* ANSI_LIBRARY */
  94.  
  95. void    getfntdf(void);
  96.  
  97. #if    OS_VAXVMS
  98. char*    getjpi(int);
  99. #endif
  100.  
  101. char*    getlogin(void);
  102. void    getpgtab(long);
  103. void    initglob(void);
  104. float    inch(char *);
  105.  
  106. #if    BBNBITGRAPH
  107. void    initterm();
  108. #endif /* BBNBITGRAPH */
  109.  
  110. #if    (CANON_A2 | HPJETPLUS)
  111. void    loadbmap(BYTE);
  112. #endif /* (CANON_A2 | HPJETPLUS) */
  113.  
  114. void    loadchar(BYTE);
  115.  
  116. #if    BBNBITGRAPH
  117. void    loadrast(FILE *, COORDINATE, COORDINATE);
  118. #endif /* BBNBITGRAPH */
  119.  
  120. int    main(int ,char *[]);
  121.  
  122. #if    ANSI_LIBRARY
  123. void*    malloc(size_t);
  124. #else
  125. char*    malloc(unsigned);
  126. #endif /* ANSI_LIBRARY */
  127.  
  128. #if    (APPLEIMAGEWRITER | OKIDATA2410)
  129. char    makechar(UNSIGN32 *[],UNSIGN32);
  130. #endif /* (APPLEIMAGEWRITER | OKIDATA2410) */
  131.  
  132. #if    HPJETPLUS
  133. void    makefont(void);
  134. #endif
  135.  
  136. void    movedown(INT32);
  137. void    moveover(INT32);
  138. void    moveto(COORDINATE, COORDINATE);
  139.  
  140. #if    (BBNBITGRAPH | HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2)
  141. void    newfont(void);
  142. #endif
  143.  
  144. UNSIGN32    nosignex(FILE *,BYTE);
  145. void    openfont(char *);
  146. void    option(char *);
  147.  
  148. #if    HPLASERJET
  149. void    outline(UNSIGN32 *);
  150. #else
  151. void    outline(char *);
  152. #endif /* HPLASERJET */
  153.  
  154. #if    EPSON
  155. #if    HIRES
  156. void    outpaperfeed(INT16);
  157. #endif /* HIRES */
  158. #endif /* EPSON */
  159.  
  160. #if    HPJETPLUS
  161. void    outraster(BYTE,UNSIGN16);
  162. #endif /* HPJETPLUS */
  163.  
  164. void    outrow(BYTE,UNSIGN16);
  165.  
  166. #if    (BBNBITGRAPH | HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2)
  167. #else
  168. void    prtbmap(void);
  169. #endif /* (BBNBITGRAPH | HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2) */
  170.  
  171. void    prtpage(long);
  172.  
  173. #if    POSTSCRIPT
  174. char*    putfontname(struct font_entry *);
  175. void    putname(FILE *,struct font_entry *);
  176. #endif /* POSTSCRIPT */
  177.  
  178. #if    BBNBITGRAPH
  179. void    putout(INT16);
  180. #endif /* BBNBITGRAPH */
  181.  
  182. void    readfont(INT32);
  183. int    readgf(void);
  184. int    readpk(void);
  185. void    readpost(void);
  186. int    readpxl(void);
  187. void    reldfont(struct font_entry *);
  188.  
  189. #if    BBNBITGRAPH
  190. void    rsetterm();
  191. #endif /* BBNBITGRAPH */
  192.  
  193. COORDINATE    rulepxl(UNSIGN32,float);
  194. void    setchar(BYTE,BOOLEAN);
  195.  
  196. #if    HPJETPLUS
  197. void    setfont(void);
  198. #endif
  199.  
  200. #if    (HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2)
  201. void    setstr(BYTE);
  202. #endif /* (HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2) */
  203.  
  204. void    setfntnm(INT32);
  205. void    setrule(UNSIGN32, UNSIGN32, BOOLEAN);
  206. INT32    signex(FILE *,BYTE);
  207. void    skipfont(INT32);
  208. void    skgfspec(void);
  209. void    skpkspec(void);
  210. void    special(char *);
  211.  
  212. #if    ANSI_LIBRARY
  213. char*    strcat(char *,const char *);
  214. char*    strchr(const char *,int);
  215. char*    strcpy(char *,const char *);
  216. size_t    strlen(const char *);
  217. int    strncmp(const char *,const char *,size_t);
  218. char*    strncpy(char *,const char *,size_t);
  219. char*    strrchr(const char *,int);
  220. #else /* NOT ANSI_LIBRARY conformant */
  221. char*    strcat(char *,char *);
  222. char*    strchr(char *,char);
  223. char*    strcpy(char *,char *);
  224. int    strlen(char *);
  225. int    strncmp(char *,char *,int);
  226. char*    strncpy(char *,char *,int);
  227. char*    strrchr(char *,char);
  228. #endif /* ANSI_LIBRARY */
  229.  
  230. int    strcm2(char *,char *);
  231. int    strid2(char[],char[]);
  232.  
  233. char*    tctos(void);
  234.  
  235. #if    POSTSCRIPT
  236. void    textchr(char);
  237. void    textflush();
  238. void    textnum(long);
  239. void    textstr(char *);
  240. #endif /* POSTSCRIPT */
  241.  
  242. #if    ANSI_LIBRARY
  243. time_t    time(time_t *);
  244. #else
  245. long    time(long *);
  246. #endif /* ANSI_LIBRARY */
  247.  
  248. #if    BBNBITGRAPH
  249. void    unloadfonts();
  250. #endif
  251.  
  252. void    usage(FILE *);
  253.  
  254. #if    VIRTUAL_FONTS
  255. void    virtfree(FILE *);
  256. #endif
  257.  
  258. void    warning(char *);
  259.  
  260. #if    FASTZERO
  261. void    zerom(UNSIGN32 *,UNSIGN32);
  262. #endif /* FASTZERO */
  263.  
  264. #else /* NOT ANSI_PROTOTYPES */
  265. double    atof();
  266. int    atoi();
  267.  
  268. #if    (BBNBITGRAPH | CANON_A2 | HPJETPLUS | IMPRESS | POSTSCRIPT)
  269. void    bopact();
  270. #endif /* (BBNBITGRAPH | CANON_A2 | HPJETPLUS | IMPRESS | POSTSCRIPT) */
  271.  
  272. char*    cuserid();
  273. char*    ctime();
  274. void    EXIT();
  275. void    free();
  276. int    FSEEK();
  277. long    FTELL();
  278. char*    GETENV();
  279.  
  280. #if    OS_VAXVMS
  281. char*    getjpi();
  282. #endif
  283.  
  284. char*    getlogin();
  285. char*    malloc();
  286.  
  287. #if    (IBM_PC_WIZARD | KCC_20 | OS_VAXVMS)
  288. /* stdio.h declares sprintf(); */
  289. #else
  290. char*    sprintf();        /* Berkeley 4.1 BSD style */
  291. #endif /* (IBM_PC_WIZARD | KCC_20 | OS_VAXVMS) */
  292.  
  293. char*    strcpy();
  294. char*    strcat();
  295. char*    strchr();        /* private version of this 4.2BSD function */
  296. int    strcm2();        /* local addition (used by inch()) */
  297. int    strcmp();
  298. int    strid2();        /* local addition (used by initglob()) */
  299. int    strncmp();
  300. char*    strncpy();
  301. char*    strrchr();        /* private version of this 4.2BSD function */
  302. long    time();
  303.  
  304. /***********************************************************************
  305. Note: Global procedures  are declared here  in alphabetical order,  with
  306. those which do not  return values typed "void".   Their bodies occur  in
  307. alphabetical order following the main()  procedure, usually in the  form
  308. of "#include" statements.   The names  are kept  unique in  the first  6
  309. characters for portability.
  310. ***********************************************************************/
  311.  
  312. void    abortrun();
  313. float    actfact();
  314. void    alldone();
  315. FILE*    FOPEN();
  316.  
  317. int    chargf();
  318. int    charpk();
  319. int    charpxl();
  320. void    clrrow();
  321.  
  322. #if    POSTSCRIPT
  323. void    cppsfile();
  324. #endif /* POSTSCRIPT */
  325.  
  326. void    dbgopen();
  327. void    devinit();
  328. void    devterm();
  329.  
  330. #if    (BBNBITGRAPH | HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2)
  331. #else /* NOT (BBNBITGRAPH | HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2) */
  332. void    clrbmap();
  333. void    dispchar();
  334. #endif /* (BBNBITGRAPH | HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2) */
  335.  
  336. void    dvifile();
  337. void    dviinit();
  338. void    dviterm();
  339.  
  340. #if    POSTSCRIPT
  341. void    emitchar();
  342. #endif /* POSTSCRIPT */
  343.  
  344. #if    (BBNBITGRAPH | CANON_A2 | HPJETPLUS | POSTSCRIPT)
  345. void    eopact();
  346. #endif /* (BBNBITGRAPH | CANON_A2 | HPJETPLUS | POSTSCRIPT) */
  347.  
  348. void    fatal();
  349. void    fillrect();
  350. void